import Vue from 'vue'
import Vuex from 'vuex'

import address from './modules/address'
import base from './modules/base'
import coupon from './modules/coupon'
import order from './modules/order'
import variable from './modules/variable'
Vue.use(Vuex)

// const state = {
//   isLoading: false,
//   direction: 'forward'
// }
// export default new Vuex.Store({
//   state,
//   mutations: {
//     UPDATE_LOADING (state, status) {
//       state.isLoading = status
//     },
//     UPDATE_DIRECTION (state, direction) {
//       state.direction = direction
//     }
//   }
// })

export default new Vuex.Store({
  modules: {
    base,
    address,
    coupon,
    order,
    variable
  },
  strict: false
})
